PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-19 10:19:19.053753+00:00 (UTC)
In US/Central Time, this is 2024-03-19 05:19:19.053753-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/0aa59e5531e059e904cb3621b9016a1437a277fb989c13dbda862686faa67d60.png
We are just generating a random time serie here.
../_images/64877956ccf09d12653efde3bd630018986c2f802027aa9a17d2f6301ad3fa4a.png
../_images/b871589575469d24bd132da0ada06e5b597865d6c030eb8e578ce9166eebed4a.png